part of 'case_form_bloc.dart';

class CaseFormState extends Equatable {
  final CaseType caseType;
  final CaseContent caseContent;
  final CaseAlong caseAlong;
  final CaseAddress caseAddress;
  final List<String> caseImages;
  final FormzStatus status;

  const CaseFormState({
    this.status = FormzStatus.pure,
    this.caseType = const CaseType.pure(),
    this.caseContent = const CaseContent.pure(),
    this.caseAlong = const CaseAlong.pure(),
    this.caseAddress = const CaseAddress.pure(),
    this.caseImages,
  });

  CaseFormState copyWith({
    FormzStatus status,
    CaseType caseType,
    CaseContent caseContent,
    CaseAlong caseAlong,
    CaseAddress caseAddress,
    List<String> caseImages,
  }) {
    return CaseFormState(
      status: status ?? this.status,
      caseType: caseType ?? this.caseType,
      caseContent: caseContent ?? this.caseContent,
      caseAlong: caseAlong ?? this.caseAlong,
      caseAddress: caseAddress ?? this.caseAddress,
      caseImages: caseImages ?? this.caseImages,
    );
  }

  @override
  List<Object> get props =>
      [status, caseType, caseContent, caseAlong, caseAddress, caseImages];
}
